PHY UPDATE RIGID BODY MASS

Recalculate the mass of a rigid body.

  Syntax
PHY UPDATE RIGID BODY MASS ID, density#, total mass#
  Parameters
ID
Integer
ID number of the rigid body
density#
Float
new density, the default is 0.0 and the range is from 0 to infinity
total mass#
Float
new mass, the default is 0.0 and the range is from 0 to infinity

  Returns

  Description

This command will recompute a dynamic rigid bodies mass properties from the shapes that construct it. Given a constant density or total mass, the objects mass properties can be recomputed using the shapes attached to the rigid body. If you want to compute the mass properties based on a total mass specify a total mass and set density to zero. Alternativly specify a density and set total mass to zero. If a density is supplied the mass is calculated based on the total mass of the shapes multiplied by the supplied density. The mass of each shape is either the shape"s local density (default 1.0) multiplied by the shape"s volume or a directly specified shape mass. The inertia tensor, mass frame and center of mass will always be recomputed.

  Example Code
No example code is provided for this command